package com.platform.framework.vo.states;

import java.util.HashMap;
import java.util.Map;

public class PayMethod {
	
	private static Map<String,String> methodMap ;
	
	private static Map<String,String> typeMap ;
	
	public static Map<String,String> getMethodMap () {
		if (methodMap == null) {
			initMethodMap ();
		}
		return methodMap;
	}
	
	public static Map<String,String> getTypeMap () {
		if (typeMap == null) {
			initTypeMap ();
		}
		return typeMap;
	}
	
	private static void initMethodMap () {
		methodMap = new HashMap<>();
		methodMap.put("1", "BarCodePay");
		methodMap.put("2", "QRCodePay");
		methodMap.put("3", "PCPay");
		methodMap.put("4", "WAPPay");
		methodMap.put("5", "Refund");
		methodMap.put("6", "TradeQuery");
		methodMap.put("7", "QueryTradeResult");
		methodMap.put("8", "Settle");
		methodMap.put("9", "H5Pay");
		methodMap.put("10", "CancelTrade");
		methodMap.put("11", "QueryTradeService");
	}
	
	private static void initTypeMap () {
		typeMap = new HashMap<>();
		typeMap.put("1", "wx");
		typeMap.put("2", "ali");
	}
}
